/**
 * 
 */
package com.juyu.miliao.scheduler.dao.mysql;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @author pengs
 *
 */
@Repository
public class SuspendDao {
     @Autowired
     private SqlSession sqlSession;
     

	/**
	 * @param page
	 * @param suspend
	 * @return
	 */
	public List<Integer> getSuspends() {
		return sqlSession.selectList("getSuspends");
	}


	/**
	 * @param userIds
	 */
	public void updateSuspendState(List<Integer> userIds) {
		Map<Object, Object> params = new HashMap<>();
		params.put("userIds", userIds);
		sqlSession.update("updateSuspendState",params);
		
	}


}
